pixelkiln 0.98.0 → 0.99.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.
package/docs/CLI.md CHANGED
@@ -1126,6 +1126,7 @@ the result as an asset's `source`, or use it as a `styleImages` or
1126
1126
 
1127
1127
  ```bash
1128
1128
  pixelkiln normal-map --from art/hero-walk.png --frames 6 --convention opengl --out art/hero-walk-normal.png
1129
+ pixelkiln normal-map --from art/hero.png --mode pro --kind character --surface-detail 0.5 --detail-softness 2
1129
1130
  ```
1130
1131
 
1131
1132
  Makes the normal map of a sprite with PixelLab's `/normal-map`, so a game
@@ -1141,9 +1142,25 @@ faces, and alpha is 255 where the sprite shows and 0 elsewhere.
1141
1142
  divide evenly by `--frames`. Both are checked before anything is sent.
1142
1143
  - `--convention opengl` (the default) is green up, for Godot, Unity, and
1143
1144
  Phaser; `--convention directx` is green down, for Unreal.
1144
- - **0.5 generation** per call, a whole strip included, charged only when the
1145
- map is delivered (PixelLab's documented price; not yet measured here). The
1146
- command prints that and asks first; `--yes` skips the question,
1145
+ - `--mode lite` (PixelLab's default) makes the map from the art alone for
1146
+ **0.1 generation**; `--mode pro` plans each part's shape, what is in front
1147
+ and what is sunk, for **0.5**. Both prices were billed live (November 2026),
1148
+ a whole strip included, charged only when the map is delivered. On a 64x64
1149
+ knight the two were close, pro defining the limbs a little more. PixelLab
1150
+ made lite the default when it added the mode, so a map that cost 0.5 before
1151
+ now costs 0.1 unless you ask for pro.
1152
+ - `--kind` says what the picture is: `character`, `object`, `topdown`, `side`,
1153
+ `iso`, or `ui`. Left out, PixelLab reads it from the picture; set it for
1154
+ sidescroller, isometric and UI art.
1155
+ - Five controls shape how the flat sprite is read as a surface. Each is
1156
+ optional, and PixelLab picks its own value for any you leave out:
1157
+ `--strength` (0–2) is how far every pixel tilts away from the viewer;
1158
+ `--outline-rounding` (0–3) rounds the silhouette's edge, 0 keeping it flat;
1159
+ `--part-shapes` (0–2) is how much a round head or an arm's cylinder adds;
1160
+ `--surface-detail` (0–2) turns the art's own light and dark into bumps, 0 for
1161
+ smooth; `--detail-softness` (0.6–3 px) blurs that detail. With outline
1162
+ rounding, part shapes and surface detail all at 0 the map is completely flat.
1163
+ - The command prints the cost and asks first; `--yes` skips the question,
1147
1164
  `--budget <n>` refuses when `n` is below it, and `--dry-run` sends nothing.
1148
1165
  - `--out` defaults to `<input>.normal.png` beside the input, and the input is
1149
1166
  never overwritten. An existing `--out` is replaced only with `--force`.
@@ -1508,6 +1525,12 @@ Print the package version. `-v` is an alias.
1508
1525
  | `--manifest <path>` | manifest commands | Manifest path; defaults to `pixelkiln.manifest.json`. |
1509
1526
  | `--frames <n>` | `estimate-skeleton`/normal-map | Frames to scaffold after the estimated pose, 3–15; default 4. For normal-map, the equal frames in the `--from` strip, 1–32; default 1. |
1510
1527
  | `--convention <c>` | normal-map | `opengl` (green up, the default) or `directx` (green down, for Unreal). |
1528
+ | `--mode <lite\|pro>` | normal-map | `lite` (the default, 0.1 generation) or `pro` (0.5). |
1529
+ | `--strength <n>` | normal-map | How far every pixel tilts away from the viewer, 0–2. |
1530
+ | `--outline-rounding <n>` | normal-map | How much the outline rounds off, 0–3. |
1531
+ | `--part-shapes <n>` | normal-map | How much the sprite's 3D parts add, 0–2. |
1532
+ | `--surface-detail <n>` | normal-map | The art's light and dark as bumps, 0–2. |
1533
+ | `--detail-softness <n>` | normal-map | How far that detail is blurred, 0.6–3 px. |
1511
1534
  | `--lock <path>` | manifest commands | Lock path; defaults beside the manifest. |
1512
1535
  | `--style a,b` | most workflows | Restrict styles; repeatable. |
1513
1536
  | `--only id1,id2` | most workflows | Restrict asset ids; repeatable. An `animation.directions` shorthand id selects every loop and mirror it expands into. |
@@ -1572,7 +1595,7 @@ Print the package version. `-v` is an alias.
1572
1595
  | `--part <name>` | vfx | Add a part; repeatable, applied in order. `pixelkiln vfx parts` lists them. |
1573
1596
  | `--sprite <ref>` | vfx | Build the effect around a sprite: a local PNG/JPEG, a URL, or `character:<id>:<direction>`. |
1574
1597
  | `--fps <n>` | vfx | Frame rate, 1–60. |
1575
- | `--kind <object\|character>` | asset | Which PixelLab asset type `--id` names; default `object`. |
1598
+ | `--kind <kind>` | asset/normal-map | asset: `object` (the default) or `character`. normal-map: what the picture is, `character`, `object`, `topdown`, `side`, `iso`, or `ui`. |
1576
1599
  | `--size <WxH>` | asset canvas | The new canvas, in multiples of 4. |
1577
1600
  | `--animation <id>` | asset mirror/export | An animation group id. |
1578
1601
  | `--direction <dir>` | asset mirror/expand/export | The direction to flip, the way an object faces before expansion, or a GIF's direction. |
package/docs/ENDPOINTS.md CHANGED
@@ -105,7 +105,7 @@ not probed.
105
105
  | `POST /reduce-colors` | revision `reduce-colors` | Measured live | 0.1 generations at 32×32, balance diff and `usage` agree ([Cleanup tier, measured](#cleanup-tier-measured), September 2026). | Larger canvases; the price of a multi-frame set call is unmeasured. | Low |
106
106
  | `POST /correct-pixelart` | revision `correct-pixelart` | Measured live | 0.1 generations at 32×32 ([Cleanup tier, measured](#cleanup-tier-measured)). | Larger canvases and multi-frame sets, as above. | Low |
107
107
  | `POST /unzoom` | `pixelkiln unzoom` | Unknown | "Cost unmeasured; PixelLab's MCP tool description claims 0.1" ([Cleanup tier, measured](#cleanup-tier-measured)). Nothing records a live run. | Everything. | Low |
108
- | `POST /normal-map` | revision `normal-map`, `pixelkiln normal-map` | Measured live | An 8-frame 1304×26 strip and a 64×64 revision each billed 0.5; the map comes back the input's size with matching alpha ([Normal map](#normal-map-post-normal-map-measured-once), October 2026). | The `directx` convention; strips near the 32-frame limit. | Low |
108
+ | `POST /normal-map` | revision `normal-map`, `pixelkiln normal-map` | Measured live | An 8-frame 1304×26 strip and a 64×64 revision each billed 0.5; the map comes back the input's size with matching alpha ([Normal map](#normal-map-post-normal-map-measured-once), October 2026). November 2026: lite (now the default) billed 0.1 six times and pro 0.5 once, with the shape controls. | The `directx` convention; strips near the 32-frame limit. | Low |
109
109
  | `POST /generate-ui-v2` | `uiElement` | Measured live | A 32×32 call billed 10 and the review page showed 64 candidates at 32×32 (November 2026, Tier 3; the plan said 1 candidate and now follows `uiElementCandidateCount`). Planned on the 10/15/25 ladder ([GENERATORS.md](./GENERATORS.md#uielement)). `target_palette` sent, mock only. | Other sizes (the 15 and 25 tiers and the other candidate bands, which come from PixelLab's published grid), and the concept-image path. | High |
110
110
  | `POST /create-1-direction-object` (+ `GET /objects/{id}`) | `1dir` | Measured live | A 32px, 3-description `batch` billed 20 (the pre-cut floor) and `item_descriptions[0]` owned slot 0 ([Candidates](#candidates)); candidate counts follow size. `target_palette` sent, mock only. | No bill since the October 2026 cut (10 / 15 / 25 is PixelLab's published ladder); tiers above the floor under `item_descriptions`. | High |
111
111
  | `POST /objects/{id}/select-frames` | `1dir` and `batch` pick | Run live, not measured | Promoted three candidates in the live batch run ([Candidates](#candidates)); `indices` is plural. | Its cost was not recorded. | Low |
@@ -770,6 +770,33 @@ matched the source's pixel for pixel, so the strip cuts back into the same
770
770
  8 frames. Wired up as the `normal-map` revision mode and `pixelkiln
771
771
  normal-map` ([REVISIONS.md](./REVISIONS.md#normal-maps)).
772
772
 
773
+ **Lite, pro and the shape controls, measured November 2026.** PixelLab added
774
+ `mode` (`lite`, the default, or `pro`), `kind`, `strength`, and four shape
775
+ fields, and made lite the default, so the same request now costs a fifth of
776
+ what it did. On a 64×64 sprite (Tier 3):
777
+
778
+ | Request | Billed |
779
+ |---|---|
780
+ | no options (lite) | 0.1 |
781
+ | `outline_rounding` 0, `part_shapes` 0, `surface_detail` 0 | 0.1 |
782
+ | `outline_rounding` 3, `part_shapes` 2, `surface_detail` 2, `detail_softness` 0.6 | 0.1 |
783
+ | `detail_softness` 3 | 0.1 |
784
+ | `strength` 0.3; `strength` 2 | 0.1 each |
785
+ | `mode: "pro"`, `kind: "character"` | 0.5 |
786
+ | `strength` 3 | 0, **422** |
787
+
788
+ - With the three shape amounts at 0 the map is one flat color: no surface at
789
+ all. At their maximum it is deep relief; `detail_softness` 3 leaves a smooth
790
+ rounded form.
791
+ - `strength` is capped at 2, which the schema does not say: 3 answered `422
792
+ Input should be less than or equal to 2`.
793
+ - Lite and pro were close on this sprite; pro defined the limbs a little more.
794
+ - The plan priced every normal map at 0.5. It now prices 0.1 unless the
795
+ revision sets `normalMapMode: "pro"`.
796
+
797
+ Not measured: `kind` values other than `character`, a strip on pro, and these
798
+ controls on anything but a single 64×64 sprite.
799
+
773
800
  ---
774
801
 
775
802
  ## Tilesets: measured once per kind
package/docs/PIXELLAB.md CHANGED
@@ -168,7 +168,7 @@ PixelLab 0.4.130 (October 2026) added four things. PixelKiln covers each:
168
168
  recipes still render free on the workbench. See
169
169
  [Generator selection](./GENERATORS.md#described-effects-the-paid-vfx-artist).
170
170
  - **Normal maps.** A `normal-map` revision makes one for a sprite or a whole
171
- loop at 0.5 generations, and `pixelkiln normal-map` does it for a loose
171
+ loop at 0.1 generations (0.5 on pro), and `pixelkiln normal-map` does it for a loose
172
172
  file. See [Controlled asset revisions](./REVISIONS.md#normal-maps).
173
173
 
174
174
  Each has been billed live and matched the plan: Pro sets at 32px (15) and
package/docs/REVISIONS.md CHANGED
@@ -263,6 +263,14 @@ strip each billed exactly 0.5).
263
263
  - `convention` is `opengl` (PixelLab's default: green up, for Godot, Unity,
264
264
  and Phaser) or `directx` (green down, for Unreal). It is rejected on other
265
265
  modes and enters the spec hash only when set. `strength` is refused.
266
+ - `normalMapMode` is `lite` (PixelLab's default, 0.1 generation) or `pro`
267
+ (0.5). `normalMapKind` says what the picture is (`character`, `object`,
268
+ `topdown`, `side`, `iso`, `ui`). `normalMapStrength` (0–2),
269
+ `outlineRounding` (0–3), `partShapes` (0–2), `surfaceDetail` (0–2) and
270
+ `detailSoftness` (0.6–3) shape the surface; see
271
+ [the command's reference](./CLI.md#normal-map) for what each does. All are
272
+ rejected on other modes and enter the spec hash only when set, so a normal
273
+ map made before them is not stale.
266
274
  - The parent must be a PNG, 8 to 512 pixels per side; both are checked at
267
275
  plan time.
268
276
  - **A loop goes as one strip.** When the parent is an animation (its
@@ -271,7 +279,7 @@ strip each billed exactly 0.5).
271
279
  carries it to the rest, so the light holds steady across the loop instead
272
280
  of flickering. The returned strip is cut back into `-frame-NN.png` files
273
281
  under the parent's roles, keeping its playback rate. A whole loop is one
274
- call, so it costs 0.5 too.
282
+ call, so it costs the same as one sprite: 0.1 on lite, 0.5 on pro.
275
283
  - **A character's directions are refused.** They are separate views, not
276
284
  frames of one motion: sent as a strip, each would be shaped from the first
277
285
  direction, and one call per direction would put several paid jobs behind
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.98.0",
3
+ "version": "0.99.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1263,6 +1263,49 @@
1263
1263
  "directx"
1264
1264
  ]
1265
1265
  },
1266
+ "normalMapMode": {
1267
+ "type": "string",
1268
+ "enum": [
1269
+ "lite",
1270
+ "pro"
1271
+ ]
1272
+ },
1273
+ "normalMapKind": {
1274
+ "type": "string",
1275
+ "enum": [
1276
+ "character",
1277
+ "object",
1278
+ "topdown",
1279
+ "side",
1280
+ "iso",
1281
+ "ui"
1282
+ ]
1283
+ },
1284
+ "normalMapStrength": {
1285
+ "type": "number",
1286
+ "minimum": 0,
1287
+ "maximum": 2
1288
+ },
1289
+ "outlineRounding": {
1290
+ "type": "number",
1291
+ "minimum": 0,
1292
+ "maximum": 3
1293
+ },
1294
+ "partShapes": {
1295
+ "type": "number",
1296
+ "minimum": 0,
1297
+ "maximum": 2
1298
+ },
1299
+ "surfaceDetail": {
1300
+ "type": "number",
1301
+ "minimum": 0,
1302
+ "maximum": 2
1303
+ },
1304
+ "detailSoftness": {
1305
+ "type": "number",
1306
+ "minimum": 0.6,
1307
+ "maximum": 3
1308
+ },
1266
1309
  "description": {
1267
1310
  "type": "string",
1268
1311
  "minLength": 1