@pixelvibing/cli 0.56.0 → 0.56.2
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/pixel-vibing-cli.js
CHANGED
|
@@ -3309,13 +3309,15 @@ const WINDOWS = [
|
|
|
3309
3309
|
{ width: 1536, height: 1024 },
|
|
3310
3310
|
{ width: 1024, height: 1536 }
|
|
3311
3311
|
];
|
|
3312
|
+
function fitsRouteWindow(size) {
|
|
3313
|
+
return WINDOWS.some((window) => size.width <= window.width && size.height <= window.height);
|
|
3314
|
+
}
|
|
3312
3315
|
function conceptSizeProblem(size) {
|
|
3313
3316
|
const { width, height } = size;
|
|
3314
3317
|
const side = (value) => Number.isInteger(value) && value >= CONCEPT_SIDE.min && value <= CONCEPT_SIDE.max && value % ROUTE_MULTIPLE === 0;
|
|
3315
3318
|
if (!side(width) || !side(height))
|
|
3316
3319
|
return `a concept art's sides are multiples of ${ROUTE_MULTIPLE} from ${CONCEPT_SIDE.min} to ${CONCEPT_SIDE.max} px, not ${width} × ${height}`;
|
|
3317
|
-
if (!
|
|
3318
|
-
return `a ${width} × ${height} px concept art is past the route's window: it fits within 1536 × 1024 or 1024 × 1536`;
|
|
3320
|
+
if (!fitsRouteWindow(size)) return `a ${width} × ${height} px concept art is past the route's window: it fits within 1536 × 1024 or 1024 × 1536`;
|
|
3319
3321
|
return null;
|
|
3320
3322
|
}
|
|
3321
3323
|
function conceptShapeProblem(shape) {
|
|
@@ -4637,7 +4639,7 @@ function costShareWords(prices, kind, usage) {
|
|
|
4637
4639
|
if (price === void 0) return null;
|
|
4638
4640
|
const most = "credits" in price ? price.credits : price.upTo;
|
|
4639
4641
|
const share = `${shareWords(most, usage.limit)} of your limit`;
|
|
4640
|
-
return "credits" in price ? share : `up to ${share}, what it
|
|
4642
|
+
return "credits" in price ? share : `up to ${share}, charged for what it uses once done`;
|
|
4641
4643
|
}
|
|
4642
4644
|
const LARGEST_FOOTPRINT = {
|
|
4643
4645
|
cols: Math.min(Math.floor(WINDOW_PX.width / SCALES.at(-1)), Math.floor(MAX_ASSEMBLED_PX / TILE_SIZE)),
|
|
@@ -6608,7 +6610,7 @@ const move = {
|
|
|
6608
6610
|
);
|
|
6609
6611
|
}
|
|
6610
6612
|
};
|
|
6611
|
-
const version = "0.56.
|
|
6613
|
+
const version = "0.56.2";
|
|
6612
6614
|
const manifest = {
|
|
6613
6615
|
version
|
|
6614
6616
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelvibing/cli",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.2",
|
|
4
4
|
"description": "PixelVibing: pixel art game assets from the command line, and the Skills that teach coding assistants to make them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://pixelvibing.com",
|
|
@@ -57,7 +57,8 @@ Load the Skill for the kind before you generate it:
|
|
|
57
57
|
without `--yes` it asks, and with nobody at the terminal it starts nothing. The MCP
|
|
58
58
|
server's `get_prices` says each kind's most, and `generate` starts only within
|
|
59
59
|
`max_percent`. Tell the person how much of their limit a batch will use before you start one.
|
|
60
|
-
- **The quality** is the platform's to choose.
|
|
60
|
+
- **The quality** is the platform's to choose. A generation is charged what it used once it is
|
|
61
|
+
done, and nothing when it fails.
|
|
61
62
|
- **Enrichment.** Unless told otherwise, the platform writes a fuller instruction from yours
|
|
62
63
|
and the style guide before it draws. When you wrote the instruction in full yourself —
|
|
63
64
|
read the guide, looked at the references, know what the person wants — pass
|