pixelkiln 0.92.3 → 0.94.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/dist/cli.js +844 -340
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +722 -312
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +199 -24
- package/dist/index.d.ts +199 -24
- package/dist/index.js +689 -283
- package/dist/index.js.map +1 -1
- package/docs/CLI.md +68 -2
- package/package.json +1 -1
package/docs/CLI.md
CHANGED
|
@@ -97,17 +97,51 @@ pixelkiln plan
|
|
|
97
97
|
pixelkiln plan --style neon --only anvil,hammer --json --check
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
+
`plan`, `hash` and `doctor` tolerate a manifest with broken entries: a style or
|
|
101
|
+
asset that fails validation, or that a provider rejects (a size outside its
|
|
102
|
+
limits), is left out, listed as `invalid` with the reason, and everything else
|
|
103
|
+
is still planned. Entries that depend on a dropped one (an asset in a dropped
|
|
104
|
+
style, a revision of a dropped asset) are listed too. With `--only` or
|
|
105
|
+
`--style`, entries outside the selection are counted, not listed. `--check`
|
|
106
|
+
treats any invalid entry as unsafe, and `--strict` restores the old
|
|
107
|
+
all-or-nothing failure. Commands that spend (`gen`, `submit`, and the rest)
|
|
108
|
+
always fail on an invalid manifest. A problem in the manifest's own top-level
|
|
109
|
+
fields still fails every command.
|
|
110
|
+
|
|
100
111
|
`--check` exits nonzero unless every selected entry is current. For styles with
|
|
101
112
|
`quality`, current raw output is not enough: each derived PNG must also have a
|
|
102
113
|
current named approval.
|
|
103
114
|
|
|
115
|
+
### `hash`
|
|
116
|
+
|
|
117
|
+
Print what a manifest asset resolves to, offline: its spec hash, the SHA-256 of
|
|
118
|
+
the file on disk, whether the lock entry matches both, and the lock entry
|
|
119
|
+
`adopt --local` would write. Needs `--only`, `--style`, or `--all`.
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
pixelkiln hash --only rockfall_pile_iso
|
|
123
|
+
pixelkiln hash --style props --json
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
The spec hash covers what would change the generated image: provider and its
|
|
127
|
+
options, generator, prompt, size, view, outline, shading, detail, seed,
|
|
128
|
+
palette, style traits and style-image hashes, and the generator-specific
|
|
129
|
+
settings. The output path, `source`, and `tags` do not feed it, so moving or
|
|
130
|
+
retagging a file never makes it stale. From code, `specHash` and
|
|
131
|
+
`resolveSpecs` are exported from the package entry point; prefer this command
|
|
132
|
+
to reaching into internals.
|
|
133
|
+
|
|
104
134
|
### `doctor`
|
|
105
135
|
|
|
106
136
|
Validate the manifest, references, lockfile recovery sources, raw and quality
|
|
107
137
|
output paths, stale jobs, current plan, credential configuration, and provider
|
|
108
138
|
connectivity. A pending or stale quality profile is reported as a warning.
|
|
109
139
|
`--dry-run` skips only live connectivity. Supports `--json` and exits nonzero
|
|
110
|
-
for unsafe state.
|
|
140
|
+
for unsafe state. Invalid entries are reported as errors, one per entry, so every
|
|
141
|
+
problem shows at once. When the project's `package.json` pins pixelkiln, doctor
|
|
142
|
+
also compares the pin, the copy in `node_modules`, and the CLI that is running,
|
|
143
|
+
and warns when they differ: an older install rejects a manifest written for the
|
|
144
|
+
pin with errors that look like a broken manifest.
|
|
111
145
|
|
|
112
146
|
### `gen`
|
|
113
147
|
|
|
@@ -306,6 +340,21 @@ running `adopt` again.
|
|
|
306
340
|
pixelkiln adopt --style cast
|
|
307
341
|
```
|
|
308
342
|
|
|
343
|
+
`adopt --local` is the keyless path for art made somewhere else (the PixelLab
|
|
344
|
+
MCP, another tool, by hand). It never contacts a provider and needs no key: it
|
|
345
|
+
hashes each selected asset's file, takes the spec hash from the manifest, and
|
|
346
|
+
writes a lock entry marked `imported`, so `plan` reports the asset ok instead
|
|
347
|
+
of untracked. `--source <name>` (default `external`) and `--note <text>` are
|
|
348
|
+
recorded on the entry; `--object-id <id>` records the provider's object id for
|
|
349
|
+
one asset. Entries already in the lockfile are skipped unless `--force`;
|
|
350
|
+
`--dry-run` and `--json` show what would be written. Characters and effects
|
|
351
|
+
are not imported this way.
|
|
352
|
+
|
|
353
|
+
```bash
|
|
354
|
+
pixelkiln adopt --local --only rockfall_pile_iso --source mcp --note "imageProFlash, box-downscaled"
|
|
355
|
+
pixelkiln adopt --local --style props --dry-run
|
|
356
|
+
```
|
|
357
|
+
|
|
309
358
|
### `accept`
|
|
310
359
|
|
|
311
360
|
Re-baseline intact existing art after prompt/style prose changes. Artwork bytes
|
|
@@ -896,6 +945,19 @@ itself and records dimensions, palette, transparency, partial alpha, edge
|
|
|
896
945
|
density and contrast, isolated-pixel ratio, and the PNG hash. A linked
|
|
897
946
|
refinement record must be current and own the image.
|
|
898
947
|
|
|
948
|
+
To refresh specific cases after redrawing their art, use
|
|
949
|
+
`quality snapshot --only <id,...>` with the same `--inputs` and `--out`. It
|
|
950
|
+
re-measures only those cases with every metric the current version writes, keeps
|
|
951
|
+
their reviewed tolerances, and leaves every other case as it was; `--dry-run`
|
|
952
|
+
prints the before and after of each metric without writing. Do not edit the
|
|
953
|
+
baseline by hand: a missing metric makes `check` fail and name the case to
|
|
954
|
+
re-snapshot.
|
|
955
|
+
|
|
956
|
+
```bash
|
|
957
|
+
pixelkiln quality snapshot --inputs config/quality-inputs.json \
|
|
958
|
+
--out quality/pixelkiln.quality.json --only rockfall_pile_iso --dry-run
|
|
959
|
+
```
|
|
960
|
+
|
|
899
961
|
`snapshot` leaves a different existing baseline untouched unless `--force` is
|
|
900
962
|
explicit. `check` exits nonzero for missing files, dimension or metric drift,
|
|
901
963
|
new colors, soft or partial-alpha edges, excessive isolated pixels, exact-hash
|
|
@@ -1240,9 +1302,10 @@ Print the package version. `-v` is an alias.
|
|
|
1240
1302
|
| `--only id1,id2` | most workflows | Restrict asset ids; repeatable. An `animation.directions` shorthand id selects every loop and mirror it expands into. |
|
|
1241
1303
|
| `--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
1304
|
| `--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. |
|
|
1305
|
+
| `--dry-run` | supported mutating commands, adopt --local, quality snapshot --only | Inspect without spending or mutating provider state. |
|
|
1244
1306
|
| `--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
1307
|
| `--check` | plan/audit/cache | Exit nonzero when selected state is unsafe. |
|
|
1308
|
+
| `--strict` | plan/hash/doctor | Fail on any invalid manifest entry instead of listing it and continuing. |
|
|
1246
1309
|
| `--yes`, `-y` | confirmed operations | Skip an interactive confirmation. For `refine approve`, it records an already-completed human review; it does not replace one. |
|
|
1247
1310
|
| `--no-open` | pick/salvage/gallery/edit | Do not automatically open the browser (`open`, `xdg-open`, or `start`, by platform), or the editor for `edit`. |
|
|
1248
1311
|
| `--edit` | gallery | Let the page change asset prompts, sizes, category, and tags, and add assets. Rewrites the manifest only; never contacts a provider or spends. Also offers the in-browser editor. |
|
|
@@ -1259,6 +1322,9 @@ Print the package version. `-v` is an alias.
|
|
|
1259
1322
|
| `--generator <name>` | init | Generator assigned to the scaffolded style. |
|
|
1260
1323
|
| `--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
1324
|
| `--write-prompts` | adopt | Recover provider prompts into the manifest. |
|
|
1325
|
+
| `--local` | adopt | Record local files as `imported` lock entries offline, with no provider key. |
|
|
1326
|
+
| `--source <name>` | adopt --local | Where the art came from (`mcp`, `hand`, a tool name); default `external`. |
|
|
1327
|
+
| `--object-id <id>` | adopt --local | The provider object id of the single asset being imported. |
|
|
1262
1328
|
| `--port <n>` | pick/salvage/gallery | Local review or gallery server port; otherwise chooses a free port. |
|
|
1263
1329
|
| `--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
1330
|
| `--inputs <path>` | pack/quality snapshot | JSON input array; requires `--out`. Quality cases use `{ id, path, record?, tolerances? }`. |
|