pixelkiln 0.92.3 → 0.93.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
@@ -101,6 +101,25 @@ pixelkiln plan --style neon --only anvil,hammer --json --check
101
101
  `quality`, current raw output is not enough: each derived PNG must also have a
102
102
  current named approval.
103
103
 
104
+ ### `hash`
105
+
106
+ Print what a manifest asset resolves to, offline: its spec hash, the SHA-256 of
107
+ the file on disk, whether the lock entry matches both, and the lock entry
108
+ `adopt --local` would write. Needs `--only`, `--style`, or `--all`.
109
+
110
+ ```bash
111
+ pixelkiln hash --only rockfall_pile_iso
112
+ pixelkiln hash --style props --json
113
+ ```
114
+
115
+ The spec hash covers what would change the generated image: provider and its
116
+ options, generator, prompt, size, view, outline, shading, detail, seed,
117
+ palette, style traits and style-image hashes, and the generator-specific
118
+ settings. The output path, `source`, and `tags` do not feed it, so moving or
119
+ retagging a file never makes it stale. From code, `specHash` and
120
+ `resolveSpecs` are exported from the package entry point; prefer this command
121
+ to reaching into internals.
122
+
104
123
  ### `doctor`
105
124
 
106
125
  Validate the manifest, references, lockfile recovery sources, raw and quality
@@ -306,6 +325,21 @@ running `adopt` again.
306
325
  pixelkiln adopt --style cast
307
326
  ```
308
327
 
328
+ `adopt --local` is the keyless path for art made somewhere else (the PixelLab
329
+ MCP, another tool, by hand). It never contacts a provider and needs no key: it
330
+ hashes each selected asset's file, takes the spec hash from the manifest, and
331
+ writes a lock entry marked `imported`, so `plan` reports the asset ok instead
332
+ of untracked. `--source <name>` (default `external`) and `--note <text>` are
333
+ recorded on the entry; `--object-id <id>` records the provider's object id for
334
+ one asset. Entries already in the lockfile are skipped unless `--force`;
335
+ `--dry-run` and `--json` show what would be written. Characters and effects
336
+ are not imported this way.
337
+
338
+ ```bash
339
+ pixelkiln adopt --local --only rockfall_pile_iso --source mcp --note "imageProFlash, box-downscaled"
340
+ pixelkiln adopt --local --style props --dry-run
341
+ ```
342
+
309
343
  ### `accept`
310
344
 
311
345
  Re-baseline intact existing art after prompt/style prose changes. Artwork bytes
@@ -896,6 +930,19 @@ itself and records dimensions, palette, transparency, partial alpha, edge
896
930
  density and contrast, isolated-pixel ratio, and the PNG hash. A linked
897
931
  refinement record must be current and own the image.
898
932
 
933
+ To refresh specific cases after redrawing their art, use
934
+ `quality snapshot --only <id,...>` with the same `--inputs` and `--out`. It
935
+ re-measures only those cases with every metric the current version writes, keeps
936
+ their reviewed tolerances, and leaves every other case as it was; `--dry-run`
937
+ prints the before and after of each metric without writing. Do not edit the
938
+ baseline by hand: a missing metric makes `check` fail and name the case to
939
+ re-snapshot.
940
+
941
+ ```bash
942
+ pixelkiln quality snapshot --inputs config/quality-inputs.json \
943
+ --out quality/pixelkiln.quality.json --only rockfall_pile_iso --dry-run
944
+ ```
945
+
899
946
  `snapshot` leaves a different existing baseline untouched unless `--force` is
900
947
  explicit. `check` exits nonzero for missing files, dimension or metric drift,
901
948
  new colors, soft or partial-alpha edges, excessive isolated pixels, exact-hash
@@ -1240,7 +1287,7 @@ Print the package version. `-v` is an alias.
1240
1287
  | `--only id1,id2` | most workflows | Restrict asset ids; repeatable. An `animation.directions` shorthand id selects every loop and mirror it expands into. |
1241
1288
  | `--budget <n\|provider=n>` | submit/gen/gallery | Refuse work above this cost. Repeat `provider=n` for every provider in a mixed run; do not mix keyed and unkeyed forms. For `gallery`, the session ceiling that enables generation from the page. |
1242
1289
  | `--force` | gen/fetch/derived commands/recipe install/quality snapshot | Regenerate current work, replace a changed or untracked fetch destination, rebuild current quality-profile output, take ownership of modified/unowned derived output, replace changed recipe files, or replace a changed quality baseline. A refinement rebuild resets approval. |
1243
- | `--dry-run` | supported mutating commands | Inspect without spending or mutating provider state. |
1290
+ | `--dry-run` | supported mutating commands, adopt --local, quality snapshot --only | Inspect without spending or mutating provider state. |
1244
1291
  | `--json` | plan/doctor/audit/cache/status/gallery/salvage/refine/recipe/quality/unzoom/pixelate/normal-map/vfx/font | Machine-readable stdout where supported. For `gallery`, prints the snapshot instead of serving it. |
1245
1292
  | `--check` | plan/audit/cache | Exit nonzero when selected state is unsafe. |
1246
1293
  | `--yes`, `-y` | confirmed operations | Skip an interactive confirmation. For `refine approve`, it records an already-completed human review; it does not replace one. |
@@ -1259,6 +1306,9 @@ Print the package version. `-v` is an alias.
1259
1306
  | `--generator <name>` | init | Generator assigned to the scaffolded style. |
1260
1307
  | `--name <name>` | init/font/vfx | Project name for the scaffolded manifest, the generated font's family name, or the effect's name in My effects. |
1261
1308
  | `--write-prompts` | adopt | Recover provider prompts into the manifest. |
1309
+ | `--local` | adopt | Record local files as `imported` lock entries offline, with no provider key. |
1310
+ | `--source <name>` | adopt --local | Where the art came from (`mcp`, `hand`, a tool name); default `external`. |
1311
+ | `--object-id <id>` | adopt --local | The provider object id of the single asset being imported. |
1262
1312
  | `--port <n>` | pick/salvage/gallery | Local review or gallery server port; otherwise chooses a free port. |
1263
1313
  | `--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. |
1264
1314
  | `--inputs <path>` | pack/quality snapshot | JSON input array; requires `--out`. Quality cases use `{ id, path, record?, tolerances? }`. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.92.3",
3
+ "version": "0.93.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,