pixelkiln 0.95.0 → 0.96.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/dist/cli.js +608 -494
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +211 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +497 -38
- package/dist/index.d.ts +497 -38
- package/dist/index.js +210 -124
- package/dist/index.js.map +1 -1
- package/docs/CLI.md +32 -0
- package/package.json +1 -1
package/docs/CLI.md
CHANGED
|
@@ -350,6 +350,27 @@ one asset. Entries already in the lockfile are skipped unless `--force`;
|
|
|
350
350
|
`--dry-run` and `--json` show what would be written. Characters and effects
|
|
351
351
|
are not imported this way.
|
|
352
352
|
|
|
353
|
+
Art made through the PixelLab MCP is usually rolled interactively and then
|
|
354
|
+
post-processed. Record that with `--tool` (the call that made it), `--prompt`
|
|
355
|
+
(the prompt it was rolled with, kept as the entry's prompt), `--seed`, `--cost`
|
|
356
|
+
(credits spent, in the asset's cost unit, counted in recorded spend), and one
|
|
357
|
+
`--step "<text>"` per thing done afterwards, in order (`downscale 0.75, box`,
|
|
358
|
+
`palette-snap lowplants`). Steps are free text: pixelkiln records them and never
|
|
359
|
+
runs them. `--raw <png>` also records the unprocessed original; when the file on
|
|
360
|
+
disk later equals it, `plan` says the original was dropped back over the
|
|
361
|
+
processed art instead of "modified". These go in an `origin` object on the lock
|
|
362
|
+
entry, separate from `imported`, so older versions still read the lockfile.
|
|
363
|
+
|
|
364
|
+
The imported bytes are cached, and re-importing different art with `--force`
|
|
365
|
+
keeps the earlier version in `history`, so `restore --generation <n|hash>` brings
|
|
366
|
+
it back with no provider and no network. `history` marks imported generations and
|
|
367
|
+
lists their tool and steps.
|
|
368
|
+
|
|
369
|
+
```bash
|
|
370
|
+
pixelkiln adopt --local --only rock --source mcp --tool create_image_pro_flash \
|
|
371
|
+
--seed 42 --cost 3 --step "downscale 0.75, box" --step "palette-snap lowplants" --raw raw/rock.png
|
|
372
|
+
```
|
|
373
|
+
|
|
353
374
|
```bash
|
|
354
375
|
pixelkiln adopt --local --only rockfall_pile_iso --source mcp --note "imageProFlash, box-downscaled"
|
|
355
376
|
pixelkiln adopt --local --style props --dry-run
|
|
@@ -423,6 +444,11 @@ PIXELKILN_EDITOR="open -a Aseprite" pixelkiln edit --only anvil --style base
|
|
|
423
444
|
pixelkiln edit detach --only anvil --style base
|
|
424
445
|
```
|
|
425
446
|
|
|
447
|
+
A derived asset, an external asset, and a mirror have no hand edit of their own,
|
|
448
|
+
because they cannot declare a `source`; `edit` refuses them and says what to do
|
|
449
|
+
instead (edit the source, change the transform, or rebuild and `adopt --local
|
|
450
|
+
--force`).
|
|
451
|
+
|
|
426
452
|
The generated PNG is the provenance record. Its hash is in the lockfile,
|
|
427
453
|
`plan` verifies it, and a regeneration replaces it, so the edit lives in a
|
|
428
454
|
sibling file. `edit` copies the generated art to `<outDir>/edits/<same
|
|
@@ -1325,6 +1351,12 @@ Print the package version. `-v` is an alias.
|
|
|
1325
1351
|
| `--local` | adopt | Record local files as `imported` lock entries offline, with no provider key. |
|
|
1326
1352
|
| `--source <name>` | adopt --local | Where the art came from (`mcp`, `hand`, a tool name); default `external`. |
|
|
1327
1353
|
| `--object-id <id>` | adopt --local | The provider object id of the single asset being imported. |
|
|
1354
|
+
| `--tool <name>` | adopt --local | The tool call that made the art, recorded under `origin`. |
|
|
1355
|
+
| `--prompt <text>` | adopt --local | The prompt the art was rolled with; becomes the entry's prompt. |
|
|
1356
|
+
| `--seed <n>` | adopt --local | The seed it was rolled with. |
|
|
1357
|
+
| `--cost <n>` | adopt --local | Credits spent making it, in the asset's cost unit; counts toward recorded spend. |
|
|
1358
|
+
| `--step <text>` | adopt --local | One post-generation step, in order; repeatable, free text, recorded and never run. |
|
|
1359
|
+
| `--raw <png>` | adopt --local | The unprocessed original, for one asset; its hash is recorded and its bytes cached. |
|
|
1328
1360
|
| `--port <n>` | pick/salvage/gallery | Local review or gallery server port; otherwise chooses a free port. |
|
|
1329
1361
|
| `--out <path>` | pack/export/refine/recipe install/quality snapshot/unzoom/pixelate/normal-map/vfx/font | Output base override, final native PNG for path-mode refine, exact recipe destination, quality baseline path, the unzoomed, pixelated, or normal-map PNG, the effect's `<base>.png`/`.gif`/`.json`/`.vfx.json`, or the font's `<base>.ttf`/`<base>.png`. Export requires one selected tileset. |
|
|
1330
1362
|
| `--inputs <path>` | pack/quality snapshot | JSON input array; requires `--out`. Quality cases use `{ id, path, record?, tolerances? }`. |
|